﻿using System;
using Airborne.ScrumPoker.Properties;

namespace Airborne.ScrumPoker
{
    public static class Guard
    {
        public static void IsNotNull(object value, string parameterName)
        {
            if (value.IsNull())
            {
                throw new ArgumentNullException(parameterName);
            }
        }

        public static void IsNotNullOrEmpty(string value, string parameterName)
        {
            if (string.IsNullOrEmpty(value))
            {
                throw new ArgumentException(Resources.StringArgumentEmptyOrNull,parameterName);
            }
        }
    }
}
